<?php
if (!class_exists("go_sql")){
	include("/var/www/html/new/conf/le.je");
	$le=new go_sql();
	$le->connect();
}
include_once '/var/www/html/new/d/meituan/MT.class.php';
$meituan = new Meituan();
$txt=file_get_contents('php://input');
$meituan->logfile($txt,"creatorder");

$arr = json_decode($txt,true);
$CreatOrder = $meituan->PFT_Order_Submit($arr);
/*
$txt = '{
  "partnerId": "1055",
  "body": {
    "bookOrderId": "pzp072800103",
    "mtUserId": "string",
    "partnerDealId": "113|5710|11285",
    "sellPrice": "10",
    "quantity": 2,
    "visitDate": "2015-07-28",
    "firstVisitor": {
      "name": "彭志萍",
      "pinyin": "pengzhiping",
      "mobile": "15959110796",
      "address": "string",
      "postCode": "string",
      "email": "string",
      "credentials": "350321199108230123",
      "credentialsType": 0
    },
    "otherVisitor": [
      {
        "name": "彭志萍",
        "pinyin": "pengzhiping",
        "mobile": "15959110796",
        "address": "string",
        "postCode": "string",
        "email": "string",
        "credentials": "string",
        "credentialsType": 0
      }
    ]
  }
}';
*/
?>